<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="zh_CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>产品规格信息</title>
</head>
<body>
	<div class="modal fade" id="detailDialog" role="dialog"
		aria-labelledby="productDialogLabel" aria-hidden="true" data-backdrop="static"
		>
		<form id="productDetail" method="post" name="productDetail" class="jqtransform">
			<div class="modal-dialog" tabindex="0" style="width:800px">
				<div class="modal-content" >
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal">
							<span aria-hidden="true">&times;</span> <span class="sr-only">Close</span>
						</button>
						<h4 class="modal-title" id="myModalLabel">产品规格信息</h4>
						<input type="hidden" id="proId" required name="id" value="${product.id}" />
					</div>
					<div class="modal-body">
						<div align="left">
							<div align="center">
								<!--选项卡-->
								<div class="container-fluid">
									<div class="row-fluid">
										<div class="span12">
											<div class="tabbable" id="tabs-234974">
												<ul class="nav nav-tabs">
													<li class="active"><a href="#baseInfor"
														data-toggle="tab">基本信息</a></li>
<!-- 													<li><a href="#detail" data-toggle="tab">详细信息</a></li> -->
													<li><a href="#resource" data-toggle="tab">资源库</a></li>
												</ul>
												<div class="tab-content">
													<div class="tab-pane active" id="baseInfor">
														<table class="table table-bordered">
															<tr>

																<td style="text-align: right; width: 100px;">产品编号:</td>
																<td><input style="width: 100%;" type="text"
																	id="proCode"  name="proCode"
																	value="${detail.proCode}" readonly="readonly" 
																	datatype="*" errormsg="请填写产品编号"
																	class="inputxt Validform_error" nullmsg="请填写产品编号" />
																</td>
																	
																<td style="text-align: right; width: 100px;">产品名称:</td>
																<td><input style="width: 100%;" type="text"
																	id="proName" required name="proName"
																	value="${detail.proName}" datatype="*" errormsg="请填写产品名称"
																	class="inputxt Validform_error" nullmsg="请填写产品名称" /></td>
															</tr>
															<tr>

																<td style="text-align: right; width: 100px;">规格编号:</td>
																<td><input style="width: 100%;" type="text"
																	id="ruleCode" required name="ruleCode"
																	value="${detail.ruleCode}" readonly="readonly" datatype="*" errormsg="请填写规格编号"
																	class="inputxt Validform_error" nullmsg="请填写规格编号"  /></td>
																	
																<td style="text-align: right; width: 100px;">规格名称:</td>
																<td><input style="width: 100%;" type="text"
																	id="ruleName" required name="ruleName"
																	value="${detail.ruleName}"
																	 datatype="*" errormsg="请填写规格名称"
																	class="inputxt Validform_error" nullmsg="请填写规格名称"
																	 /></td>
															</tr>
															<tr>
																<td style="text-align: right; width: 100px;">长度:</td>
																<td><input style="width: 100px;" type="text"
																	id="longness" required name="longness" value="${detail.longness}"  
																	datatype="n1-5" errormsg="请填写正确长度" class="inputxt Validform_error" nullmsg="请填写长度"/></td>
																	
																<td style="text-align: right; width: 100px;">宽度:</td>
																<td><input style="width: 100px;" type="text"
																	id="width"  name="width"
																	value="${detail.width}" datatype="n1-5" errormsg="请填写正确宽度"
																	class="inputxt Validform_error" nullmsg="请填写宽度" /></td>
															</tr>
																<tr>
																<td style="text-align: right; width: 100px;">高度:</td>
																<td><input style="width: 100px;" type="text"
																	id="height" required name="height" value="${detail.height}"  datatype="n1-5" errormsg="请填写正确高度"
																	class="inputxt Validform_error" nullmsg="请填写高度" /></td>
																	
																<td style="text-align: right; width: 100px;">颜色:</td>
																<td><input style="width: 100px;" type="text"
																	id="color" required name="color"
																	value="${detail.color}" /></td>
															</tr>
															<tr>
																
																			<td style="text-align: right; width: 100px;">规格数量:</td>
																<td><input style="width: 100px;" type="text"
																	id="minTotal" name="minTotal" value="${detail.minTotal}"  datatype="n1-5" errormsg="请填写正确数量"
																	class="inputxt Validform_error" nullmsg="请填写数量"/></td>
																	<td style="text-align: right; width: 100px;">总库存:</td>
																<td><input style="width: 100px;" type="text"
																	id="total" name="total" value="${detail.total}"  datatype="n1-5" errormsg="请填写正确库存"
																	class="inputxt Validform_error" nullmsg="请填写库存"/></td>
															</tr>
															<tr>
																
																<td style="text-align: right; width: 100px;">进货价:</td>
																<td><input style="width: 100px;" type="text"
																	id="enterPrice" name="enterPrice" value="${detail.enterPrice}"  datatype="n1-5" errormsg="请填写正确进货价"
																	class="inputxt Validform_error" nullmsg="请填写进货价" /></td>
															<td style="text-align: right; width: 100px;">销售价:</td>
																<td><input style="width: 100px;" type="text"
																	id="salePrice" name="salePrice" value="${detail.salePrice}" /></td>
															</tr>
															<tr>
																<td style="text-align: right; width: 100px;">主图片:</td>
																<td colspan="4">
																<input style="width: 400px;"
																	type="text" id="pic" name="pic" required
																	value="${detail.pic}" datatype="url"
																	class="inputxt Validform_error" readonly="readonly" errormsg="请上传产品主图片"
																	nullmsg="请上传产品主图片" />
																	<button type="button" id="picSelect">选择文件</button>
																	<button id="uploadBtn">上传</button> <img id="mainImg"
																	src="" datatype="url" /> <span class="Validform_checktip">请上传产品主图片</span>
																	
																	</td>
																
															</tr>
															<tr>
																<td style="text-align: right;">备注:</td>
																<td colspan="4"><textarea style="width: 400px;"
																		name="description" id="description">
															${detail.description}
															</textarea></td>
															</tr>
														</table>
													</div>
												
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
						<div id="optBtn" class="modal-footer">
						<button id="saveBtn" type="button" class="btn btn-primary">保存</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
					</div>
					</div>
					
				</div>
			</div>
		</form>
	</div>
</body>
</html>